#ifndef STORE_H
#define STORE_H

#include <QWidget>
#include<QPixmap>
#include<01Config.h>
#include<QPainter>
#include<gold.h>
#include<play_scene.h>
#include<QPushButton>
#include<QLabel>
#include<QFont>
#include<QPalette>
#include<QString>
#include<QMessageBox>
#include<QSound>
class MyStore : public QWidget
{
    Q_OBJECT
public:
    explicit MyStore(QWidget *parent = nullptr);
    //两种战机
    QPushButton *Hero_Btn2;
    QPushButton *Hero_Btn3;
    //六种僚机
    QPushButton *Wing_Btn1;
    QPushButton *Wing_Btn2;
    QPushButton *Wing_Btn3;
    QPushButton *Wing_Btn4;
    QPushButton *Wing_Btn5;
    QPushButton *Wing_Btn6;


    //返回按钮
    QPushButton * ReturnMain;
    //绘制商店背景
    void paintEvent(QPaintEvent *event);
    //标题
    QLabel lab;
    QPalette pe;//字体颜色

    //金币总量
    int  gold_num=GOLD_INIT_NUM;

    //按钮音效
    QSound*btn_music;

signals:
    void  returnmainscence();

    void  BuyHero2();
    void  BuyHero3();
    void  BuyWing1();
    void  BuyWing2();
    void  BuyWing3();
    void  BuyWing4();
    void  BuyWing5();
    void  BuyWing6();


};

#endif // STORE_H
